package com.cloudeasy.base.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Create By 郭金宝 on 2019/1/16.<br>
 */
@Data
@NoArgsConstructor
public class ShardingContextDto {
    /**
     * The Sharding total count.
     */
    int shardingTotalCount;
    /**
     * The Sharding item.
     */
    int shardingItem;

    public ShardingContextDto(final int shardingTotalCount, final int shardingItem) {
        this.shardingTotalCount = shardingTotalCount;
        this.shardingItem = shardingItem;
    }
}
